<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.global.js"></script>
</head>

<body>
    <div id="app">
        {{msg}}
        <!-- 在“change”时而非“input”时更新 -->
        <input v-model.trim.lazy="msg" />
        <hr>
        {{age}}
        <input v-model.number="age" type="text" />
    </div>

    <script>
        const app = {
            data(){
                return {
                    msg:"令妹",
                    age:18
                }
            }
        }
        Vue.createApp(app).mount("#app")
    </script>
</body>

</html>